package org.jsola.hr.web;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.jsola.core.Page;
import org.jsola.core.Result;
import org.jsola.hr.dto.AttendPunchDailyReportAddDTO;
import org.jsola.hr.dto.AttendPunchDailyReportUpdateDTO;
import org.jsola.hr.query.AttendPunchDailyReportQuery;
import org.jsola.hr.query.AttendPunchRecordSimpleQuery;
import org.jsola.hr.query.AttendRecordStatQuery;
import org.jsola.hr.query.AttendStatusQuery;
import org.jsola.hr.vo.AttendDailyPeriodVO;
import org.jsola.hr.vo.AttendPunchDailyReportListVO;
import org.jsola.hr.vo.AttendPunchDailyReportVO;
import org.jsola.hr.vo.AttendPunchRecordSimpleVO;

import java.util.List;

/**
 * @author zhr
 */
@Api(tags = "hr-考勤打卡日报表")
public interface IAttendPunchDailyReportControllerAPI {

    /**
     * 新增考勤打卡日报表
     * @param attendPunchDailyReportAddDTO 考勤打卡日报表新增实体
     * @return 考勤打卡日报表展示对象
     */
    @ApiOperation(value = "新增考勤打卡日报表")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "attendPunchDailyReportAddDTO", dataType = "AttendPunchDailyReportAddDTO", value = "新增考勤打卡日报表", paramType = "body")
    })
    Result<AttendPunchDailyReportVO> save(AttendPunchDailyReportAddDTO attendPunchDailyReportAddDTO);


    /**
     * 修改考勤打卡日报表
     * @param attendPunchDailyReportUpdateDTO 考勤打卡日报表
     * @return 更新数量
     */
    @ApiOperation(value = "修改考勤打卡日报表")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "attendPunchDailyReportUpdateDTO", dataType = "AttendPunchDailyReportUpdateDTO", value = "修改考勤打卡日报表", paramType = "body")
    })
    Result<Integer> update(AttendPunchDailyReportUpdateDTO attendPunchDailyReportUpdateDTO);


    /**
     * 删除单个考勤打卡日报表，彻底删除
     * @param attendPunchDailyReportId 考勤打卡日报表id
     * @return 删除数量
     */
    @ApiOperation(value="删除单个考勤打卡日报表，彻底删除")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "attendPunchDailyReportId", dataType = "String", value = "考勤打卡日报表id", paramType = "path")
    })
    Result<Integer> delete(String attendPunchDailyReportId);


    /**
     * 批量删除考勤打卡日报表，彻底删除
     * @param attendPunchDailyReportIds 考勤打卡日报表id集合
     * @return 删除数量
     */
    @ApiOperation(value = "批量删除考勤打卡日报表，彻底删除")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "attendPunchDailyReportIds", dataType = "String[]", value = "考勤打卡日报表id数组", paramType = "body" ,allowMultiple = true)
    })
    Result<Integer> deleteBatch(String[] attendPunchDailyReportIds);


    /**
     * 根据考勤打卡日报表id查询考勤打卡日报表详情
     * @param attendPunchDailyReportId 考勤打卡日报表id
     * @return 考勤打卡日报表详情
     */
    @ApiOperation(value="根据考勤打卡日报表id查询考勤打卡日报表详情")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "attendPunchDailyReportId", dataType = "String", value = "考勤打卡日报表id", paramType = "path")
    })
    Result<AttendPunchDailyReportVO> findById(String attendPunchDailyReportId);


    /**
     * 查询考勤打卡日报表
     * @param attendPunchDailyReportQuery 考勤打卡日报表查询参数
     * @return page
     */
    @ApiOperation(value="查询考勤打卡日报表")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "attendPunchDailyReportQuery", dataType = "AttendPunchDailyReportQuery", value = "考勤打卡日报表查询参数", paramType = "query")
    })
    Result<List<AttendPunchDailyReportListVO>> listAll(AttendPunchDailyReportQuery attendPunchDailyReportQuery);


     /**
     * 分页查询考勤打卡日报表
     * @param attendRecordStatQuery 考勤打卡日报表查询参数
     * @return page
     */
    @ApiOperation(value="分页查询考勤打卡日报表")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "attendRecordStatQuery", dataType = "AttendRecordStatQuery", value = "考勤打卡日报表查询参数", paramType = "query")
    })
    Result<Page<AttendPunchDailyReportListVO>> page(AttendRecordStatQuery attendRecordStatQuery);

    /**
     * 异常打卡详情
     *
     * @param attendStatusQuery
     * @return
     */
    @ApiOperation(value="异常打卡详情")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "attendStatusQuery", dataType = "AttendStatusQuery", value = "异常打卡详情查询参数", paramType = "query")
    })
    Result<List<AttendDailyPeriodVO>> selectAttendStatus(AttendStatusQuery attendStatusQuery);

    /**
     * 查询考勤打卡详情
     *
     * @param attendPunchRecordSimpleQuery
     * @return
     */
    @ApiOperation(value="查询考勤打卡详情")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "attendPunchRecordSimpleQuery", dataType = "AttendPunchRecordSimpleQuery", value = "查询考勤打卡详情参数", paramType = "query")
    })
    Result<List<AttendPunchRecordSimpleVO>> findSimpleRecordList(AttendPunchRecordSimpleQuery attendPunchRecordSimpleQuery);
}

